
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>权限服务 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="CODELISTSERVICE.html" />
    
    
    <link rel="prev" href="UISERVICE.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../APPS/LOCALE.html">
            
                <a href="../APPS/LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../APPS/EXTENDED.html">
            
                <a href="../APPS/EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../APPS/STYLE.html">
            
                <a href="../APPS/STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../APPS/NAVG.html">
            
                <a href="../APPS/NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../APPS/TEMP.html">
            
                <a href="../APPS/TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../APPS/Theme.html">
            
                <a href="../APPS/Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="../APPS/NAVPARAM.html">
            
                <a href="../APPS/NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="../APPS/VIEWMESSAGE.html">
            
                <a href="../APPS/VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../CTRLS/FORM.html">
            
                <a href="../CTRLS/FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../CTRLS/GRID.html">
            
                <a href="../CTRLS/GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../CTRLS/GRIDEXPBAR.html">
            
                <a href="../CTRLS/GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../CTRLS/SEARCHBAR.html">
            
                <a href="../CTRLS/SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../CTRLS/SEARCHFORM.html">
            
                <a href="../CTRLS/SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../CTRLS/DataKanBan.html">
            
                <a href="../CTRLS/DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../CTRLS/PortalComponents.html">
            
                <a href="../CTRLS/PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../CTRLS/TABEXPPANEL.html">
            
                <a href="../CTRLS/TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../CTRLS/TABVIEWPANEL.html">
            
                <a href="../CTRLS/TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../CTRLS/APPMENU.html">
            
                <a href="../CTRLS/APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="../CTRLS/LIST.html">
            
                <a href="../CTRLS/LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="../CTRLS/LISTEXPBAR.html">
            
                <a href="../CTRLS/LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="../CTRLS/PANEL.html">
            
                <a href="../CTRLS/PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="../CTRLS/DATAVIEWCTRL.html">
            
                <a href="../CTRLS/DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="../CTRLS/DATAVIEWEXPBAR.html">
            
                <a href="../CTRLS/DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="../CTRLS/DataRelationPage.html">
            
                <a href="../CTRLS/DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="../CTRLS/DATARELATIONFIELD.html">
            
                <a href="../CTRLS/DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="../CTRLS/CALENDAR.html">
            
                <a href="../CTRLS/CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="../CTRLS/CALENDARTIMELINE.html">
            
                <a href="../CTRLS/CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="../CTRLS/CALENDAREXPBAR.html">
            
                <a href="../CTRLS/CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="../CTRLS/TREEEXPBAR.html">
            
                <a href="../CTRLS/TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="../CTRLS/TREEVIEWUNIT.html">
            
                <a href="../CTRLS/TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="../CTRLS/TREEGRID.html">
            
                <a href="../CTRLS/TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                <a href="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="../CTRLS/KANBANVIEWUNIT.html">
            
                <a href="../CTRLS/KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="../CTRLS/GANTT.html">
            
                <a href="../CTRLS/GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="../CTRLS/DATACHART.html">
            
                <a href="../CTRLS/DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="../CTRLS/SELECTVIEWPANEL.html">
            
                <a href="../CTRLS/SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="../CTRLS/WIZARDPANEL.html">
            
                <a href="../CTRLS/WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="../CTRLS/STATEWIZARDPANEL.html">
            
                <a href="../CTRLS/STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="../CTRLS/CONTEXTMENU.html">
            
                <a href="../CTRLS/CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="../CTRLS/TOOLBAR.html">
            
                <a href="../CTRLS/TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="CTRLSERVICE.html">
            
                <a href="CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="UISERVICE.html">
            
                <a href="UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.6.3" data-path="AUTHSERVICE.html">
            
                <a href="AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="CODELISTSERVICE.html">
            
                <a href="CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="COUNTERSERVICE.html">
            
                <a href="COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="APPUTILSERVICE.html">
            
                <a href="APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="VIEWMESSAGESERVICE.html">
            
                <a href="VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../APPS/PROBLEM.html">
            
                <a href="../APPS/PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >权限服务</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x6743;&#x9650;&#x670D;&#x52A1;">&#x6743;&#x9650;&#x670D;&#x52A1;</h2>
<p>&#x6743;&#x9650;&#x670D;&#x52A1;&#x4E3B;&#x8981;&#x627F;&#x8F7D;&#x524D;&#x7AEF;&#x5E94;&#x7528;&#x6743;&#x9650;&#x90E8;&#x5206;&#x5185;&#x5BB9;&#xFF0C;&#x5305;&#x542B;&#x83DC;&#x5355;&#x6743;&#x9650;&#x3001;&#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6743;&#x9650;&#x548C;&#x7CFB;&#x7EDF;&#x7EA7;&#x5B9E;&#x4F53;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x7BA1;&#x7406;3&#x90E8;&#x5206;&#x5185;&#x5BB9;&#x3002;&#x672C;&#x6587;&#x4E3B;&#x8981;&#x4ECE;&#x83DC;&#x5355;&#x6743;&#x9650;&#x548C;&#x6309;&#x94AE;&#x6743;&#x9650;&#x4E24;&#x4E2A;&#x7EF4;&#x5EA6;&#x6765;&#x9610;&#x8FF0;&#xFF0C;&#x6743;&#x9650;&#x670D;&#x52A1;&#x4F4D;&#x4E8E;&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;&#x4E0B;&#x7684;authservice&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x3002;</p>
<p>&#x5176;&#x4E2D;&#xFF0C;&#x5728;&#x5E94;&#x7528;&#x521D;&#x59CB;&#x5316;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8C03;&#x7528;&#x83B7;&#x53D6;&#x5E94;&#x7528;&#x6570;&#x636E;&#xFF08;appdata&#xFF09;&#x63A5;&#x53E3;&#xFF0C;&#x8FD4;&#x56DE;&#x5F53;&#x524D;&#x7528;&#x6237;&#x7684;&#x83DC;&#x5355;&#x548C;&#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6570;&#x636E;&#x3002;&#x524D;&#x7AEF;&#x63D0;&#x4EA4;&#x5230;&#x524D;&#x7AEF;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5E93;&#xFF08;store&#xFF09;&#xFF0C;&#x518D;&#x7531;&#x6743;&#x9650;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x662F;&#x5426;&#x5B58;&#x5728;&#x67D0;&#x6743;&#x9650;&#x80FD;&#x529B;&#xFF0C;&#x6700;&#x540E;UI&#x5C42;&#x6216;&#x8005;&#x5176;&#x4ED6;UI&#x670D;&#x52A1;&#x6CE8;&#x5165;&#x6743;&#x9650;&#x670D;&#x52A1;&#x4F7F;&#x7528;&#x5176;&#x80FD;&#x529B;&#x5373;&#x53EF;&#x3002;&#x83DC;&#x5355;&#x6743;&#x9650;&#x903B;&#x8F91;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript"><span class="hljs-comment">// &#x8C03;&#x7528;appdata&#x63A5;&#x53E3;&#xFF0C;&#x83B7;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x63D0;&#x4EA4;&#x5230;&#x524D;&#x7AEF;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5E93;</span>
<span class="hljs-comment">/**
 * &#x83B7;&#x53D6;&#x5E94;&#x7528;&#x6570;&#x636E;
 *
 * @param {string} url url &#x8BF7;&#x6C42;&#x8DEF;&#x5F84;
 * @param {*} [params={}] &#x8BF7;&#x6C42;&#x53C2;&#x6570;
 * @param {*} [router] &#x8DEF;&#x7531;&#x5BF9;&#x8C61;
 * @returns {Promise&lt;any&gt;} &#x8BF7;&#x6C42;&#x76F8;&#x54CD;&#x5E94;&#x5BF9;&#x8C61;
 * @memberof AuthGuard
 */</span>
<span class="hljs-keyword">public</span> authGuard(url: <span class="hljs-built_in">string</span>, params: <span class="hljs-built_in">any</span> = {}, router: <span class="hljs-built_in">any</span>): Promise&lt;<span class="hljs-built_in">boolean</span>&gt; {
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> Promise((resolve: <span class="hljs-built_in">any</span>, reject: <span class="hljs-built_in">any</span>) =&gt; {
        <span class="hljs-keyword">const</span> <span class="hljs-keyword">get</span>: Promise&lt;<span class="hljs-built_in">any</span>&gt; = Http.getInstance().get(url);
        <span class="hljs-keyword">get</span>.then((response: <span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span> (response &amp;&amp; response.status === <span class="hljs-number">200</span>) {
                <span class="hljs-keyword">let</span> { data }: { data: <span class="hljs-built_in">any</span> } = response;
                <span class="hljs-keyword">if</span> (data) {
                    <span class="hljs-comment">// token&#x8BA4;&#x8BC1;&#x628A;&#x7528;&#x6237;&#x4FE1;&#x606F;&#x653E;&#x5165;&#x5E94;&#x7528;&#x7EA7;&#x6570;&#x636E;</span>
                    <span class="hljs-keyword">if</span>(localStorage.getItem(<span class="hljs-string">&apos;user&apos;</span>)){
                        <span class="hljs-keyword">let</span> user:<span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(localStorage.getItem(<span class="hljs-string">&apos;user&apos;</span>) as <span class="hljs-built_in">string</span>);
                        <span class="hljs-keyword">let</span> localAppData:<span class="hljs-built_in">any</span> = {};
                        <span class="hljs-keyword">if</span>(user.sessionParams){
                            localAppData = {context:user.sessionParams};
                            <span class="hljs-built_in">Object</span>.assign(localAppData,data);
                        }
                        data = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(localAppData));
                    }
                    <span class="hljs-keyword">if</span>(localStorage.getItem(<span class="hljs-string">&apos;localdata&apos;</span>)){
                        router.app.$store.commit(<span class="hljs-string">&apos;addLocalData&apos;</span>, <span class="hljs-built_in">JSON</span>.parse(localStorage.getItem(<span class="hljs-string">&apos;localdata&apos;</span>) as <span class="hljs-built_in">string</span>));
                    }
                    router.app.$store.commit(<span class="hljs-string">&apos;addAppData&apos;</span>, data);
                    <span class="hljs-comment">// &#x63D0;&#x4EA4;&#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6570;&#x636E;</span>
                    router.app.$store.dispatch(<span class="hljs-string">&apos;authresource/commitAuthData&apos;</span>, data);
                }
            }
            resolve(<span class="hljs-literal">true</span>);
        }).catch((error: <span class="hljs-built_in">any</span>) =&gt; {
            resolve(<span class="hljs-literal">true</span>);
            <span class="hljs-built_in">console</span>.error(<span class="hljs-string">&quot;&#x83B7;&#x53D6;&#x5E94;&#x7528;&#x6570;&#x636E;&#x51FA;&#x73B0;&#x5F02;&#x5E38;&quot;</span>);
        });
    });
}

<span class="hljs-comment">// &#x6743;&#x9650;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x662F;&#x5426;&#x5B58;&#x5728;&#x67D0;&#x6743;&#x9650;&#x80FD;&#x529B;</span>
<span class="hljs-comment">/**
 * &#x6839;&#x636E;&#x83DC;&#x5355;&#x9879;&#x83B7;&#x53D6;&#x83DC;&#x5355;&#x6743;&#x9650;
 *
 * @param {*} item &#x83DC;&#x5355;&#x6807;&#x8BC6;
 * @returns {boolean}
 * @memberof AuthService
 */</span>
<span class="hljs-keyword">public</span> getMenusPermission(item: <span class="hljs-built_in">any</span>): <span class="hljs-built_in">boolean</span> {
    <span class="hljs-keyword">if</span>(!<span class="hljs-keyword">this</span>.$store.getters[<span class="hljs-string">&apos;authresource/getEnablePermissionValid&apos;</span>]) {
        <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;
    }
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.$store.getters[<span class="hljs-string">&apos;authresource/getAuthMenu&apos;</span>](item);
}

<span class="hljs-comment">/**
 * &#x6839;&#x636E;&#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6807;&#x8BC6;&#x83B7;&#x53D6;&#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6743;&#x9650;
 *
 * @param {*} tag &#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x6807;&#x8BC6;
 * @returns {boolean}
 * @memberof AuthService
 */</span>
<span class="hljs-keyword">public</span> getResourcePermission(tag: <span class="hljs-built_in">any</span>): <span class="hljs-built_in">boolean</span> {
    <span class="hljs-keyword">if</span>(!<span class="hljs-keyword">this</span>.$store.getters[<span class="hljs-string">&apos;authresource/getEnablePermissionValid&apos;</span>]) {
        <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;
    }
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.$store.getters[<span class="hljs-string">&apos;authresource/getResourceData&apos;</span>](tag);
}

<span class="hljs-comment">// UI&#x5C42;&#x6216;&#x8005;&#x5176;&#x4ED6;UI&#x670D;&#x52A1;&#x6CE8;&#x5165;&#x6743;&#x9650;&#x670D;&#x52A1;&#x4F7F;&#x7528;&#x5176;&#x80FD;&#x529B;&#x5373;&#x53EF;</span>
<span class="hljs-comment">/**
 * &#x8BA1;&#x7B97;&#x6709;&#x6548;&#x83DC;&#x5355;&#x9879;
 *
 * @param {*} inputMenus
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */</span>
<span class="hljs-keyword">public</span> computedEffectiveMenus(inputMenus:<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt;){
    inputMenus.forEach((_item:<span class="hljs-built_in">any</span>) =&gt;{
        <span class="hljs-keyword">if</span>(!<span class="hljs-keyword">this</span>.authService.getMenusPermission(_item)){
            _item.hidden = <span class="hljs-literal">true</span>;
            <span class="hljs-keyword">if</span> (_item.items &amp;&amp; _item.items.length &gt; <span class="hljs-number">0</span>) {
                <span class="hljs-keyword">this</span>.computedEffectiveMenus(_item.items);
            }
        }
    })
}
</code></pre>
<p>&#x5728;UI&#x5C42;&#x6309;&#x94AE;&#x7ED1;&#x5B9A;&#x754C;&#x9762;&#x884C;&#x4E3A;&#xFF0C;&#x6309;&#x94AE;&#x6743;&#x9650;&#x662F;&#x7531;&#x5B9E;&#x4F53;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x548C;&#x5F53;&#x524D;&#x73AF;&#x5883;&#x7684;&#x6570;&#x636E;&#x5171;&#x540C;&#x51B3;&#x5B9A;&#x7684;&#x3002;&#x83B7;&#x53D6;&#x6309;&#x94AE;&#x6743;&#x9650;&#x9996;&#x5148;UI&#x4F1A;&#x4F20;&#x5165;&#x6570;&#x636E;&#x5230;&#x754C;&#x9762;&#x670D;&#x52A1;&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x72B6;&#x6001;&#x5BF9;&#x5E94;&#x5B9E;&#x4F53;&#x7EA7;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x96C6;&#x5408;&#xFF08;&#x8BE6;&#x60C5;&#x53C2;&#x89C1;<a href="UISERVICE.html">&#x754C;&#x9762;&#x670D;&#x52A1;</a>&#xFF09;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x8BA1;&#x7B97;&#x7ED3;&#x679C;&#x4F20;&#x5165;&#x6620;&#x5C04;&#x7684;&#x6743;&#x9650;&#x670D;&#x52A1;&#x5408;&#x5E76;&#x7CFB;&#x7EDF;&#x7EA7;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x5E76;&#x8FD4;&#x56DE;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x96C6;&#x5408;&#x6570;&#x636E;&#x4F9B;UI&#x4F7F;&#x7528;&#x3002;&#x672C;&#x6BB5;&#x4E3B;&#x8981;&#x9610;&#x8FF0;&#x6743;&#x9650;&#x670D;&#x52A1;&#x5408;&#x5E76;&#x7CFB;&#x7EDF;&#x7EA7;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;&#x8FD9;&#x5757;&#x5185;&#x5BB9;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript"><span class="hljs-comment">/**
 * &#x6839;&#x636E;&#x5F53;&#x524D;&#x6570;&#x636E;&#x83B7;&#x53D6;&#x5B9E;&#x4F53;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;
 *
 * @param {*} mainSateOPPrivs &#x4F20;&#x5165;&#x6570;&#x636E;&#x64CD;&#x4F5C;&#x6807;&#x8BC6;
 * @returns {any}
 * @memberof ${srfclassname(&apos;${item.getCodeName()}&apos;)}AuthServiceBase
 */</span>
<span class="hljs-keyword">public</span> getOPPrivs(mainSateOPPrivs:<span class="hljs-built_in">any</span>):<span class="hljs-built_in">any</span>{
    <span class="hljs-keyword">let</span> curDefaultOPPrivs:<span class="hljs-built_in">any</span> = <span class="hljs-keyword">this</span>.getSysOPPrivs();
    <span class="hljs-keyword">let</span> copyDefaultOPPrivs:<span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(curDefaultOPPrivs));
    <span class="hljs-keyword">if</span>(mainSateOPPrivs){
        <span class="hljs-built_in">Object</span>.assign(curDefaultOPPrivs,mainSateOPPrivs);
    }
    <span class="hljs-comment">// &#x7EDF;&#x4E00;&#x8D44;&#x6E90;&#x4F18;&#x5148;</span>
    <span class="hljs-built_in">Object</span>.keys(curDefaultOPPrivs).forEach((name:<span class="hljs-built_in">string</span>) =&gt; {
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.sysOPPrivsMap.get(name) &amp;&amp; copyDefaultOPPrivs[name] === <span class="hljs-number">0</span>){
            curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
        }
    });
    <span class="hljs-keyword">return</span> curDefaultOPPrivs;
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="UISERVICE.html" class="navigation navigation-prev " aria-label="Previous page: 界面服务">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="CODELISTSERVICE.html" class="navigation navigation-next " aria-label="Next page: 代码表服务">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"权限服务","level":"2.6.3","depth":2,"next":{"title":"代码表服务","level":"2.6.4","depth":2,"path":"UISERVICE/CODELISTSERVICE.md","ref":"./UISERVICE/CODELISTSERVICE.md","articles":[]},"previous":{"title":"界面服务","level":"2.6.2","depth":2,"path":"UISERVICE/UISERVICE.md","ref":"./UISERVICE/UISERVICE.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"UISERVICE/AUTHSERVICE.md","mtime":"2020-09-20T02:41:34.226Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

